package com.neudu.yiyang.mapper;

import com.neudu.yiyang.pojo.Bed;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

import java.util.List;
import java.util.Map;

/**
* @author 16462
* @description 针对表【bed】的数据库操作Mapper
* @createDate 2025-03-31 21:56:23
* @Entity com.neudu.yiyang.pojo.Bed
*/
public interface BedMapper extends BaseMapper<Bed> {


    List<Bed> getCustomerData(Integer id);


    List<Bed> getByConditions(Map<String, Object> queryParams);

    void updateBedStatus(@Param("bedId") Integer bedId, @Param("customerId") Integer customerId);

    Bed selectById(@Param("id") Integer id);
    int updateStatus(@Param("id") Integer id, @Param("status") Integer status);

    List<Bed> selectByCustomerId(Integer customerId);

    @Select("SELECT * FROM bed WHERE id = #{bedId}")
    Bed selectBedById(Integer bedId);

    void updateByPrimaryKey(Bed originalBed);
}




